<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  
<html xmlns = "http://www.w3.org/1999/xhtml">
  <!-- 2012 lukbrasil -->
  <!-- Internet & World Wide Web How To Program - Exercise 6.31 -->
  <head>
   <title>Exercise 6.31</title>
   
   <script type = "text/javascript">
     <!--
     document.writeln("<table border = \"0\">");
     document.writeln("  <caption>Squares and Cubes of the numbers 0 to 10</caption>");
     
     document.writeln("  <thead>");
     document.writeln("    <tr>");
     document.writeln("      <th>number</th>");
     document.writeln("      <th>square</th>");
     document.writeln("      <th>cube</th>");
     document.writeln("    </tr>");
     document.writeln("  </thead>");
     
     document.writeln("  <tbody>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 0 + "</td>");
     document.writeln("      <td>" + 0 * 0 + "</td>");
     document.writeln("      <td>" + 0 * 0 * 0 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 1 + "</td>");
     document.writeln("      <td>" + 1 * 1 + "</td>");
     document.writeln("      <td>" + 1 * 1 * 1 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 2 + "</td>");
     document.writeln("      <td>" + 2 * 2 + "</td>");
     document.writeln("      <td>" + 2 * 2 * 2 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 3 + "</td>");
     document.writeln("      <td>" + 3 * 3 + "</td>");
     document.writeln("      <td>" + 3 * 3 * 3 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 4 + "</td>");
     document.writeln("      <td>" + 4 * 4 + "</td>");
     document.writeln("      <td>" + 4 * 4 * 4 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 5 + "</td>");
     document.writeln("      <td>" + 5 * 5 + "</td>");
     document.writeln("      <td>" + 5 * 5 * 5 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 6 + "</td>");
     document.writeln("      <td>" + 6 * 6 + "</td>");
     document.writeln("      <td>" + 6 * 6 * 6 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 7 + "</td>");
     document.writeln("      <td>" + 7 * 7 + "</td>");
     document.writeln("      <td>" + 7 * 7 * 7 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 8 + "</td>");
     document.writeln("      <td>" + 8 * 8 + "</td>");
     document.writeln("      <td>" + 8 * 8 * 8 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 9 + "</td>");
     document.writeln("      <td>" + 9 * 9 + "</td>");
     document.writeln("      <td>" + 9 * 9 * 9 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("    <tr>");
     document.writeln("      <td>" + 10 + "</td>");
     document.writeln("      <td>" + 10 * 10 + "</td>");
     document.writeln("      <td>" + 10 * 10 * 10 + "</td>");
     document.writeln("    </tr>");
     
     document.writeln("  </tbody>");
     
     document.writeln("</table>");
     // -->
   </script>
  </head>
  <body>
  </body>
</html>
